package com.evan.design.principle.openclose;

/**
 * @author :liujiapeng01
 * @date :2019-03-20 19:24
 **/
public class JavaDiscountCourse extends JavaCourse {

    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }


    public Double getDisCountPrice() {
        return super.getPrice() * 0.8;
    }
}
